public class TestItem {
    public static void main(String[] args) {
        Car car = new Car("Cn00000001", "BWM", 10, 250000.00);
        ElectricCar electricCar = new ElectricCar("CN00000002", "XIAOMI", 15, 250000.00, 100);
        PetrolCar petrolCar = new PetrolCar("CN00000003", "Mercedes-Benz", 15, 2500000.00, 100);
        System.out.println(car.getDescription());
        car.addStock(20);
        System.out.println("After addStock"+car.getQuantityInStock());
        car.sellStock(5);
        System.out.println("After sellStock"+car.getQuantityInStock());
        car.setPrice(5000000);
        System.out.println("After setPrice"+car.getPrice());
        car.setSupplier("PORSCHE");
        System.out.println("After setSupplier"+car.getSupplier());
        car.setquantityInStock(29);
        System.out.println("After setquantityInStock"+car.getQuantityInStock());
        System.out.println("--------------------------------------------------------------------------------");
        System.out.println(electricCar.getDescription());
        electricCar.addStock(25);
        System.out.println("After addStock"+electricCar.getQuantityInStock());
        electricCar.sellStock(5);
        System.out.println("After sellStock"+electricCar.getQuantityInStock());
        electricCar.chargeBattery();
        System.out.println("--------------------------------------------------------------------------------");
        System.out.println(petrolCar.getDescription());
        petrolCar.addStock(15);
        System.out.println("After addStock"+petrolCar.getQuantityInStock());
        petrolCar.sellStock(5);
        System.out.println("After sellStock"+petrolCar.getQuantityInStock());
        petrolCar.filltankSize();

        System.out.println("--------------------------------------------------------------------------------");
        System.out.println("Total cars created: " + car.getCarCount());

    }
}
